import React, { Component } from 'react';
import PubSub from 'pubsub-js'
import { meshLog, SPRemove, SPGet, SPSet } from '../../config';
import { DEVICE_SET_DIALOG_SHOW, DEVICE_SET_DIALOG_HIDE, Regular, CUR_AREA_NO, webHeight } from '../../const/infoConst';
import "./css/location.less";
import beijing from '../../static/login/beijing.png';


export default class location extends Component {
  constructor(props) {
    super(props);
    this.state = {
      errors: {}
    };
  }

  componentDidMount() {
    SPSet('dizhilan', JSON.stringify(1));//控制OK跳转的页面所需要的具体数据
    SPSet('dizhilanbanben', JSON.stringify(9));//控制OK跳转的页面所需要的具体数据,刷新版本需要的
    //设置界面弹窗
    PubSub.subscribe(DEVICE_SET_DIALOG_SHOW, (msg, index) => {
      this.setState({
        showDiaolg: 'visible',
      })
    })
    PubSub.subscribe(DEVICE_SET_DIALOG_HIDE, (msg, index) => {
      this.setState({
        showDiaolg: 'hidden',
      })
    })
  }


  render() {
    return (
      <div className="dashboard">
        <img src={beijing} alt="background" className="bg-image" />
      </div>
    );
  }
}
